/**
 * Created by dinstar on 2018/4/21.
 */
Ext.define('CMS.views.main.totalBill.billPieChart', {
    extend: 'Ext.chart.PolarChart',

    /*
    Uncomment to give this component an xtype
    xtype: 'pie',
    */

    requires:[
      //  'CMS.store.totalBill.Population'
        'CMS.store.totalBill.totalBill'
    ],
    xtype:'bill-PieChart',
    legend: { docked: 'bottom' },
    height:500,
    width:500,
    padding:{
        top:50,
        bottom:20,
        left:100,
        right:100
    },

    insetPadding:{
        top: 100,
        bottom: 20,
        left: 20,
        right: 40
    },
    store: {
        type: 'totalBillStore'
    },

    interactions:['rotate'],


    series:[{
        type:'pie',
        xField:'amountPrice',
        label:{
          field:'consumptionTime',
          display:'rotate'
        },
        donut:25,
        style:{
            miterLimit: 10,
            lineCap: 'miter',
            lineWidth: 2
        }
    }]


});